<?php
/**
 * unit tests for djhttpresponse
 */
class TestDjHttpResponse extends UnitTestCase {

    function testConstructor() {

    }

    function testHeaders() {
        $r=new DjHttpResponse();
        $r->toto='value';
        $this->assertTrue($r->hasHeader('toto'));
    }

    function testContent() {
        $r=new DjHttpResponse('some content');
        $this->assertEqual($r->content,'some content');
        $this->assertTrue($r->write(', some more'));
        $this->assertEqual($r->content,'some content, some more');
    }
}